package cn.whit.blog.dao;

import java.sql.SQLException;
import java.util.List;

import cn.whit.blog.domain.Tblogtype;
import cn.whit.blog.util.DynamicQuery;
import cn.whit.blog.util.PageModel;

public interface TblogtypeDao {
	
	Tblogtype findById(String id) throws SQLException;
	
	List<Tblogtype> findAll() throws SQLException;


	List<Tblogtype> findAllWithPageAndQuery(int startIndex, int pageSize, DynamicQuery query) throws Exception;

	int findTotalRecordsAndQuery(DynamicQuery query) throws Exception;

	void save(Tblogtype tblogtype) throws SQLException;

	void update(Tblogtype tblogtype) throws SQLException;

	void deleteById(String s) throws SQLException;

	PageModel findByPageAndQuery(int curNum, int pageSize, DynamicQuery query);

	
}
